package admin.server;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import admin.redis.RedisConfig;
import admin.redis.service.impl.RedisServiceImpl;

/**
 * @author zgb
 */
//如果项目不需要数据库相关信息就排除此类的autoconfig

@Configuration
@Import({RedisConfig.class, RedisServiceImpl.class})
@MapperScan(value = {"admin.server.dao", "admin.dao.mapper"})
@SpringBootApplication(scanBasePackages = {"admin"})
@EnableFeignClients(basePackages = {"admin.server.feign"})
public class AdminServerApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = new SpringApplicationBuilder(AdminServerApplication.class).run(args);
    }
}